{% extends 'adminbase.html' %}
{% block content_admin %}		

	<p>	
		<a href="/admin/admin_createphoto">Create Photo</a>
	</p>
	List of Photo

	{% if photo_list %}
	    <ul>
	    {% for photo in photo_list %}
	        <li><img src="{{ photo.thumb }}" class="photo-icon" />&nbsp;<a href="/admin/admin_detailphoto/{{ photo.pk }}/">{{ photo.title }}</a></li>
	    {% endfor %}
	    </ul>
	{% else %}
	    <p>No photos are available.</p>
	{% endif %}

{% endblock %}
